.class public Lcom/vividsolutions/jts/noding/snapround/SimpleSnapRounder;
.super Ljava/lang/Object;
.source "SimpleSnapRounder.java"

# interfaces
.implements Lcom/vividsolutions/jts/noding/Noder;


# direct methods
.method public static addSnappedNode(Lcom/vividsolutions/jts/noding/snapround/HotPixel;Lcom/vividsolutions/jts/noding/SegmentString;I)Z
    .locals 2

    .line 202
    invoke-virtual {p1, p2}, Lcom/vividsolutions/jts/noding/SegmentString;->getCoordinate(I)Lcom/vividsolutions/jts/geom/Coordinate;

    move-result-object v0

    add-int/lit8 v1, p2, 0x1

    .line 203
    invoke-virtual {p1, v1}, Lcom/vividsolutions/jts/noding/SegmentString;->getCoordinate(I)Lcom/vividsolutions/jts/geom/Coordinate;

    move-result-object v1

    .line 205
    invoke-virtual {p0, v0, v1}, Lcom/vividsolutions/jts/noding/snapround/HotPixel;->intersects(Lcom/vividsolutions/jts/geom/Coordinate;Lcom/vividsolutions/jts/geom/Coordinate;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 208
    invoke-virtual {p0}, Lcom/vividsolutions/jts/noding/snapround/HotPixel;->getCoordinate()Lcom/vividsolutions/jts/geom/Coordinate;

    move-result-object p0

    invoke-virtual {p1, p0, p2}, Lcom/vividsolutions/jts/noding/SegmentString;->addIntersection(Lcom/vividsolutions/jts/geom/Coordinate;I)V

    const/4 p0, 0x1

    return p0

    :cond_0
    const/4 p0, 0x0

    return p0
.end method
